<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
  <div class="navbar-header">
    <button class="navbar-toggle" data-target=".navbar-collapse" data-toggle="collapse" type="button">
      <span class="sr-only">Toggle navigation</span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </button>
    <a class="navbar-brand" href="/">Udesk APID emo</a>
  </div>

  <ul class="nav navbar-top-links navbar-right pull-right">
    <li>
      <%= link_to '<i class="fa fa-sign-out fa-fw"></i>登出</a>'.html_safe, destroy_user_session_path, :method=>'delete' %>
    </li>
  </ul>

  <div class="navbar-default sidebar" role="navigation">
    <div class="sidebar-nav navbar-collapse">
      <ul class="nav in" id="side-menu">
        <li>
          <a href="/">
            <i class="fa fa-dashboard fa-fw"></i>
            Dashboard</a>
        </li>
        <li>
          <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> 项目管理<span class="fa arrow"></span></a>
          <ul class="nav nav-second-level collapse in">
            <li>
              <%= link_to '测试项目列表', projects_path() %>
            </li>
            <li>
              <%= link_to '新建测试项目', new_project_url() %>
            </li>
          </ul>
        </li>
        <%= render 'layouts/navbar_api' %>
        
      </ul>
    </div>
  </div>
</nav>
